// 变量定义
$primary-color: #6df7be;
$secondary-color: #1e7168;
$text-color: #ffffff;
$disabled-color: #cccccc;

// 混合器
@mixin flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

@mixin flex-column {
  display: flex;
  flex-direction: column;
}

@mixin button-base {
  padding: 8px 80px;
  min-width: 200px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

// 基础布局
.bg {
  width: 100%;
  height: 100vh;
  background: url('@/image/monitor/bg2.png') no-repeat;
  background-size: 100% 100%;
  position: relative;
}

// 通用标题样式
.patient-info-title {
  box-sizing: border-box;
  color: #6df7be;
  font-size: 20px;
  padding: 20px 40px;
  font-weight: bold;
}

// 稳定系数区域样式
.stability-section {
  box-sizing: border-box;
  padding-top: 20px;

  .section-title {
    // 如果需要特殊调整可以在这里添加
    margin-top: 40px;
  }
}

.StabilityCoefficient {
  display: flex;

  .leftStabilityCoefficient,
  .rightStabilityCoefficient {
    width: 280px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 60px;
    padding-top: 20px;

    .topLeftStabilityCoefficient,
    .topRightStabilityCoefficient {
      display: flex;
      align-items: center;

      .topLeftStabilityCoefficientTitle,
      .topRightStabilityCoefficientTitle {
        color: #6df7be;

        div {
          &:first-child {
            font-size: 24px;
          }

          &:last-child {
            font-size: 14px;
          }
        }
      }

      .topLeftStabilityCoefficientNumber,
      .topRightStabilityCoefficientNumber {
        margin-left: 20px;
        color: white;
        font-size: 60px;
        overflow: hidden;
      }
    }

    .maxNumber {
      color: #cccccc;
      font-size: 20px;
    }
  }

  .rightStabilityCoefficient {
    padding-left: 60px;
  }

  .allStabilityCoefficient {
    margin-left: 30px;
    width: 390px;
    border-radius: 5px;
    border: 1px solid #6df7be;
    box-sizing: border-box;
    border-bottom: 0px;

    .allStabilityCoefficientCenter {
      padding-top: 20px;
      padding-left: 5px;
      display: flex;
      align-items: center;
      color: white;

      .content {
        margin-left: 20px;

        div {
          &:first-child {
            font-size: 20px;
            color: #6df7be;
          }

          &:last-child {
            margin-top: 10px;
            font-size: 14px;
            color: #cccccc;
          }
        }
      }

      .StabilityCoefficientMax {
        color: white;
        font-size: 50px;
        margin-left: 10px;
      }
    }
  }
}

.cranialPressure {
  box-sizing: border-box;
  color: #6df7be;
  font-size: 20px;
  padding: 20px 40px;
  font-weight: bold;
  padding-top: 55px;

  .title {
    color: #6df7be;
  }

  .status {
    color: white;
  }
}

.nav-menu {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-around;
  align-items: center;

  .nav-item {
    width: 20%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    image {
      width: 40px;
      height: 40px;
    }
  }
}

.AbnormalElectrode {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999999;
  width: 940rpx;
  height: 960rpx;
  background: url('../../image/bigDialog.png') no-repeat;
  background-size: 100% 100%;

  .size {
    margin-top: 40px;
    color: #f7f7f7;
    font-size: 24px;
  }

  button {
    font-size: 26px;
    margin-top: 20px;
    background-color: #1e7168;
    color: #52f38e;
    padding-left: 30px;
    padding-right: 30px;
    border: none;
    border-radius: 55px;
    cursor: pointer;
  }
}

.exit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;

  .exitImg {
    width: 700px;
    height: 384px;
    background: url('@/image/exit.png') no-repeat;
    background-size: 100% 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    .transparent-button {
      margin-top: 90px;
      padding: 8px 80px;
      min-width: 200px;
      font-size: 18px;
      color: #ffffff;
      background-color: transparent;
      border: 2px solid #4e9089;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.3s;

      &:hover {
        background-color: rgba(78, 144, 137, 0.1);
      }

      &:active {
        background-color: rgba(78, 144, 137, 0.2);
      }
    }

    .confirm-button {
      margin-top: 90px;
      padding: 8px 80px;
      min-width: 200px;
      font-size: 18px;
      color: #51f08d;
      background-color: #1e7168;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.3s;
      margin-left: 20px;

      &:hover {
        background-color: #1a635b;
      }

      &:active {
        background-color: #165951;
      }
    }

    // 调整按钮容器的布局
    > div {
      display: inline-block; // 让两个按钮并排显示
    }
  }
}

.frequency-display {
  position: fixed;
  bottom: 5px;
  right: 32px;
  z-index: 100;
  
  span {
    color: rgba(255, 255, 255, 0.5);  // 灰色半透明文字
    font-size: 4px;
  }
}

.display-time{
  position: fixed;
  bottom: 5px;
  left: 32px;
  z-index: 100;
  display: flex;
  color: rgba(255, 255, 255, 0.5);  // 灰色半透明文字
  font-size: 4px;
}
